<!--%import("./js/project.js",optimized=false)-->
<!--%import("./filter/update_project.xml")-->
<!--#include("_header.html")-->


<form action="./" method="post" onsubmit="return doUpdateProject(this, update_project)" id="projectFo">
<input type="hidden" name="site_srl" value="{$project_info->site_srl}" />
<input type="hidden" name="project_admin" value="<!--@foreach($admin_list as $key=>$val)-->{$val->member_srl},<!--@end-->" />
    <table cellspacing="0" class="crossTable">
    <thead>
        <tr>
            <th colspan="3"><div>{$lang->cmd_project_setup} &gt; {$project_info->title}</div></th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <th scope="row"><div>{$lang->project_title}</div></th>
            <td colspan="2"><input type="text" name="title" value="{htmlspecialchars($project_info->title)}"  class="inputTypeText w200"/></td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->access_type}</div></th>
            <td colspan="2">
                <label for="chkDomain"><input type="radio" id="chkDomain" name="access_type" value="domain" onclick="toggleAccessType('domain');" <!--@if(!isSiteID($project_info->domain))-->checked="checked"<!--@end--> /> {$lang->access_domain}</label>
                <label for="chkVid"><input type="radio" id="chkVid" name="access_type" value="vid" onclick="toggleAccessType('vid');" <!--@if(isSiteID($project_info->domain))-->checked="checked"<!--@end--> /> {$lang->access_vid}</label>
                <div id="accessDomain" style="display:<!--@if(!isSiteID($project_info->domain))-->block<!--@else-->none<!--@end-->; margin-top:10px;">
                    http://<input type="text" name="domain" value="<!--@if(!isSiteID($project_info->domain))-->{$project_info->domain}<!--@end-->" class="inputTypeText w200" />
                    <p>{$lang->about_domain}</p>
                </div>
                <div id="accessVid" style="display:<!--@if(isSiteID($project_info->domain))-->block<!--@else-->none<!--@end-->; margin-top:10px;">
                    <input type="text" name="vid" value="<!--@if(isSiteID($project_info->domain))-->{$project_info->domain}<!--@end-->" class="inputTypeText w200" />
                    <p>{$lang->about_vid}</p>
                </div>
            </td>
        </tr>
        <tr>
            <th scope="row"><div>{$lang->project_admin}</div></th>
            <td colspan="2">
                <select name="admin_list" multiple="multiple" size="{count($admin_list)?count($admin_list):1}" class="w200">
                <!--@foreach($admin_list as $key => $val)-->
                    <option value="{$val->user_id}">{$val->nick_name} ({$val->user_id})</option>
                <!--@end-->
                </select>
                <br />
                <input type="text" name="admin_id" class="inputTypeText w100" />
                <span class="button"><button type="button" onclick="doProjectInsertAdmin()">{$lang->cmd_insert}</button></span>
                <span class="button"><button type="button" onclick="doProjectDeleteAdmin()">{$lang->cmd_delete}</button></span>
                <p>{$lang->about_project_admin}</p>
            </td>
        </tr>
        <tr class="row2">
            <th colspan="3" class="button">
                <span class="btn black strong"><input type="submit" value="{$lang->cmd_save}" accesskey="s" /></span>
                <a href="{getSiteUrl($project_info->domain,'', 'act','dispProjectManage')}" onclick="window.open(this.href); return false;" class="btn"><span>{$lang->cmd_management}</span></a>
                <a href="{getSiteUrl($project_info->domain, '')}" onclick="window.open(this.href); return false;" class="btn"><span>{$lang->cmd_move}</span></a>
            </th>
        </tr>
    </tbody>
    </table>
</form>

<!--#include("_footer.html")-->
